#ifndef __XRTCSERVER_AUDIO_AUDIO_RECEIVE_STREAM_H
#define __XRTCSERVER_AUDIO_AUDIO_RECEIVE_STREAM_H
#include "audio/audio_receive_stream_config.h"
#include "audio/channel_receive.h"
#include "modules/rtp_rtcp/receive_stat.h"
namespace xrtc
{
    class AudioReceiveStream
    {
    public:
        AudioReceiveStream(const AudioReceiveStreamConfig &config);
        ~AudioReceiveStream();
        void OnRtpPacket(const webrtc::RtpPacketReceived &packet);
        void DeliverRtcp(const uint8_t *data, size_t len);

    private:
        AudioReceiveStreamConfig config_;
        std::unique_ptr<ReceiveStat> rtp_receive_stat_;
        std::unique_ptr<ChannelReceive> channel_receive_;
    };

} // namespace xrtc
#endif